<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of Array
 *
 * @author zxcms
 */
class H_Util_FilterExt {
    //put your code here
    public static function toListFilterString($data,$key,$value){        
        $str = "[";
        foreach ($data as $item){
            $dot = end($data) == $item ? "" :",";
            $str .="[\"".$item[$key]."\",\"".$item[$value]."\"]" . $dot;
        }
        $str .= "]";
        return $str;
    }
}
?>
